home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
iguana
/
incosrc
/
incosrc.exe
/
UTIL
/
SETOBJ.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-07-18
|
470b
|
33 lines
{$M 16384,0,0}
USES Dos, Objects;
VAR
Seg : STRING[4];
Name : STRING;
St : TDosStream;
BEGIN
Seg := '____';
Seg := ParamStr(3);
Seg[0] := #4;
Name := ParamStr(4);
SwapVectors;
Exec(Getenv('COMSPEC'), '/c binobj '+ParamStr(1)+' '+ParamStr(2)+' '+Name);
SwapVectors;
St.Init(ParamStr(2), stOpen);
St.Seek(12);
St.Write(Seg[1], 4);
St.Seek(34);
St.Write(Name[1], Length(Name));
St.Done;
END.